.example-container {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.example-container h4 {
  margin: 0 0 15px 0;
  color: #495057;
  border-bottom: 2px solid #007bff;
  padding-bottom: 8px;
}

.description {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 15px;
  color: #0c5460;
}

.description.warning {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

/* 基本列表样式 */
.controls {
  margin-bottom: 15px;
}

.controls button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.controls button:hover {
  background-color: #0056b3;
}

.fruit-list {
  list-style: none;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
}

.fruit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #f1f3f4;
  background-color: white;
  transition: background-color 0.2s;
}

.fruit-item:hover {
  background-color: #f8f9fa;
}

.fruit-item span {
  flex: 1;
  color: #495057;
}

.remove-btn {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.remove-btn:hover {
  background-color: #c82333;
}

/* Keys 示例样式 */
.add-user-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.add-user-form input {
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
}

.add-user-form button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.user-list {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.user-list h5 {
  margin: 0 0 15px 0;
  color: #495057;
}

.user-list ul {
  list-style: none;
  padding: 0;
}

.user-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #f1f3f4;
  transition: background-color 0.2s;
}

.user-item:hover {
  background-color: #f8f9fa;
}

.user-item:last-child {
  border-bottom: none;
}

.user-info {
  flex: 1;
}

.user-info strong {
  display: block;
  color: #495057;
  margin-bottom: 4px;
}

.user-info span {
  color: #6c757d;
  font-size: 14px;
}

.user-actions {
  display: flex;
  gap: 8px;
}

.user-actions button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.user-actions button:hover {
  background-color: #0056b3;
}

.user-actions button.danger {
  background-color: #dc3545;
}

.user-actions button.danger:hover {
  background-color: #c82333;
}

/* 错误 Keys 示例样式 */
.bad-list {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.bad-list h5 {
  margin: 0 0 15px 0;
  color: #856404;
}

.bad-list ul {
  list-style: none;
  padding: 0;
}

.bad-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #f1f3f4;
  background-color: white;
  transition: all 0.3s ease;
}

.bad-item:hover {
  background-color: #f8f9fa;
  transform: translateX(2px);
}

.bad-item .priority {
  background-color: #dc3545;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  margin-right: 10px;
  min-width: 60px;
  text-align: center;
}

.bad-item span {
  color: #495057;
}

/* 动态列表样式 */
.task-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  justify-content: center;
}

.stat {
  text-align: center;
  padding: 15px;
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  min-width: 80px;
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: bold;
  color: #007bff;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: #6c757d;
  margin-top: 5px;
}

.task-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.task-controls input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
}

.task-controls button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.filter-buttons button {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.filter-buttons button.active {
  background-color: #007bff;
}

.filter-buttons button:hover {
  background-color: #545b62;
}

.task-list {
  list-style: none;
  padding: 0;
  max-height: 400px;
  overflow-y: auto;
}

.task-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #f1f3f4;
  background-color: white;
  transition: all 0.2s;
}

.task-item:hover {
  background-color: #f8f9fa;
}

.task-item.completed {
  background-color: #f8f9fa;
  opacity: 0.7;
}

.task-item input[type="checkbox"] {
  margin-right: 10px;
}

.task-text {
  flex: 1;
  color: #495057;
  cursor: pointer;
  user-select: none;
}

.task-text.completed-text {
  text-decoration: line-through;
  color: #6c757d;
}

.delete-btn {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.delete-btn:hover {
  background-color: #c82333;
}

/* 嵌套列表样式 */
.department-list {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
}

.department {
  margin-bottom: 15px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  overflow: hidden;
}

.department-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #f8f9fa;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
}

.department-header:hover {
  background-color: #e9ecef;
}

.department-header h5 {
  margin: 0;
  color: #495057;
}

.employee-count {
  background-color: #007bff;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.expand-icon {
  color: #6c757d;
  font-size: 12px;
  transition: transform 0.2s;
}

.employee-list {
  list-style: none;
  padding: 0;
  background-color: #f8f9fa;
}

.employee-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #e9ecef;
}

.employee-item:last-child {
  border-bottom: none;
}

.employee-info {
  flex: 1;
}

.employee-info strong {
  display: block;
  color: #495057;
  margin-bottom: 4px;
}

.employee-info span {
  color: #6c757d;
  font-size: 14px;
}

.remove-employee-btn {
  background-color: #ffc107;
  color: #212529;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.remove-employee-btn:hover {
  background-color: #e0a800;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .add-user-form {
    flex-direction: column;
  }
  
  .task-stats {
    flex-direction: column;
    gap: 10px;
  }
  
  .task-controls {
    flex-direction: column;
  }
  
  .filter-buttons {
    justify-content: center;
  }
  
  .department-header {
    padding: 10px;
  }
  
  .employee-item {
    padding: 10px;
  }
  
  .user-actions {
    flex-direction: column;
    gap: 5px;
  }
}